The Elder Scrolls Forums

TES Construction Set and Plugins >> General TES Construction Set

Pages: 1
Chrono_Jam
Novice

Reged: 08/01/04
Posts: 29
Getting Npcs to "follow" you?
      #2936677 - 08/16/04 04:09 PM

how do i get Npcs to follow me around when i tell them to? (a tutorial page would be extremely useful)

--------------------
You...Must help...me.. or ill go insane!!!!

-currently constructing an airship ;P

Post Extras: Print Post   Remind Me!   Notify Moderator  
Grumpy
Disciple

Reged: 08/02/02
Posts: 1590
Re: Getting Npcs to "follow" you? [Re: Chrono_Jam]
      #2937050 - 08/16/04 05:49 PM

You need to give them some dialog.

-Open the Dialog window in the editor.

-Make sure the "Filter for" box in the lower left hand corner of the Dialog window is cleared (nothing in there).

-Left click with your mouse anywhere in the left hand pane (Topic tab), and select "New" from the pop-up.

-Wait a second, and a new empty editable box will appear at the bottom of that pane.

-Type in something like -follow me....

Try to keep this unique so it doesn't interfere with any other mods that also make dialog changes. I always use a hyphen (-) in front of the topic so it will appear at the top of the list, but do it as you want.

-When you've typed in the topic title you want, click anyplace out of that editable field and it then becomes a valid topic.

-Now, make sure it's highlighted, then in the top-center field (Info/Response) of the dialog window, right click again (top empty line) and again, select "New".

-Type in something like "Yes %PCName?" (no quotes) and then click outside of the edit field to set it.

-Right in the middle of the Dialog window, you'll see a pull-down type of pane that says "ID" next to it.

-Click on this to get to a complete list of NPCs, and select the ID of you're companion.

-Down to the results box...

-Type something like this in there:
choice "Follow me." 1 "Stay here." 2

...note that this "form" has to be followed. "Choice" has to be the first word. Quatation marks must be used. So do spaces. You can change the text here or even the numbers, but it has to look like the above. These are the commands that you will give the NPC. They are what will appear in the dialog box in-game when you click on the topic (we get to that later).


-Back to the top where you put the first entry in.

-Right click on that entry and select new again.

-Another editable box will appear ABOVE the first one you did, and in this one you'll put the "answers" that companion will give when you issue one of the commands from the first entry. Note that the choices (above) MUST be at the bottom of this list, or the thing won't work.

-In this second entry, put an answer: "I will follow." (no quotes)

-In the ID window select the companion's ID.

-Just to the right of that you'll see the "Function/Variable" section.

-Click on the first empty box and select "Function".

-Click on the box to the right of the first one and select "Choice".

-Leave the = sign in there.

-In the last box (far right) type in the number 1.

This number corresponds to the numbers you used in the "choice" statement from above. It's how the engine determines what choice you make in-game.

-Finshed product should look like this:

Function/Choice/=/1

-Down to the results box. Type the following:

AIFollow Player 0 0 0 0

Spaces between the numbers. Always remember that syntax is everything here. You leave out a space, or misspell a word, and the thing doesn't work. You have to be precise.


-Back up to the top. Right click on the top entry and select "New" again.

-In this third entry, put an answer: "I will wait." (no quotes)

-In the ID window select the companion's ID.

-Just to the right of that you'll see the "Function/Variable" section.

-Click on the first empty box and select "Function".

-Click on the box to the right of the first one and select "Choice".

-Leave the = sign in there.

-In the last box (far right) type in the number 2.

-Finshed product should look like this:

Function/Choice/=/2

-Down to the results box. Type the following:

AIWander 0 0 0 0

This makes them stay in one spot. If you want them to wander, type the following instead:

AIWander 1000 0 0 60 20 10 10 0 0 0 0

1000 = distance

Rest of the numbers are for duration, idle, etc.. Just use what's above, but you can change the distance if you desire.

That does it for dialog. Now to your script:

Begin CompScript
short companion
Set Companion to 1
AddTopic "-follow me..."
end CompScript

Make absolutely sure you spell this "AddTopic" line exactly the same as you did in the Dialog window or it won't show up, and make sure that you assign this script to your companion.

Close enough?

--------------------
Grumpy
My mods

Post Extras: Print Post   Remind Me!   Notify Moderator  
Chrono_Jam
Novice

Reged: 08/01/04
Posts: 29
Re: Getting Npcs to "follow" you? [Re: Chrono_Jam]
      #2940226 - 08/17/04 02:19 PM

yeah thanks but... when i talk to to hiim about -follow me.... it comes up with the choices but then when i click either of them he keeps asking it over and over again and i cant quit the dialogue help please

--------------------
You...Must help...me.. or ill go insane!!!!

-currently constructing an airship ;P

Post Extras: Print Post   Remind Me!   Notify Moderator  
Graphite
Acolyte

Reged: 11/07/03
Posts: 161
Re: Getting Npcs to "follow" you? [Re: Chrono_Jam]
      #2940260 - 08/17/04 02:27 PM

Quote:

Note that the choices (above) MUST be at the bottom of this list, or the thing won't work.




As far as I know, they should be at the top, not the bottom, so like this:

"I will follow you" for choice=1
"Fine. I won't" for choice=2
"Should I follow you?" with the decision stuff in the result box.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1


Extra information
0 registered and 2 anonymous users are browsing this forum.

Moderator:  Umrahel, Freddo, Pete, Hungry Donner, Attrebus, Miltiades, tegger 

Print Thread

Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 86

Rate this thread
 
Jump to

The Elder Scrolls Homepage

*
UBB.threads™ 6.3

Click for Privacy Statement © 2003 Bethesda Softworks LLC, a ZeniMax Media company. All Rights Reserved.
PRIVACY POLICY | TERMS & CONDITIONS | LEGAL INFORMATION | CONTACT US